package
{
	import flash.display.Sprite;
	
	public class TestLayout extends Sprite
	{
		private var s1:Sprite;
		private var s2:Sprite;
		private var s3:Sprite;
		
		public function TestLayout()
		{
			super();
			init();
		}
		
		public function init():void {
			s1 = new Sprite();
			s2 = new Sprite();
			s3 = new Sprite();
			
			s1.graphics.beginFill(0,.7);
			s1.graphics.drawRect(0,0,100,100);
			s1.graphics.endFill();
			
			s2.graphics.beginFill(0xff0000,.7);
			s2.graphics.drawRect(0,0,100,100);
			s2.graphics.endFill();
			
			s3.graphics.beginFill(0xffff00,.7);
			s3.graphics.drawRect(0,0,100,100);
			s3.graphics.endFill();
			
			
			this.addChild(s1);
			s1.addChild(s2);
			s2.x = -100;
			s2.addChild(s3);
		}
	}
}